cleanup: run indent with the Linux Kernel style across all code
Over the years, the reiserfs kernel code has been gradually cleaned up to be more readable. This patch does the same to the progs code. Signed-off-by: Jeff Mahoney <jeffm@suse.com>
This commit is contained in:
1 parent
b23d40f723
commit
47cff72748
51 files changed
+27279
-25108
No files matched your search
@@ -6,23 +6,21 @@
|
||||
#include "resize.h"
|
||||
|
||||
/* the front-end for kernel on-line resizer */
|
||||
int resize_fs_online(char * devname, long long int blocks) {
|
||||
int resize_fs_online(char *devname, long long int blocks)
|
||||
{
|
||||
struct mntent *mnt;
|
||||
char buf[40];
|
||||
|
||||
|
||||
/* Find the mount entry. */
|
||||
if ((mnt = misc_mntent(devname)) == NULL)
|
||||
die ("resize_reiserfs: can't find mount entry\n");
|
||||
die("resize_reiserfs: can't find mount entry\n");
|
||||
|
||||
sprintf(buf,"resize=%lld", blocks);
|
||||
sprintf(buf, "resize=%lld", blocks);
|
||||
|
||||
if (mount(mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type,
|
||||
(unsigned long)(MS_MGC_VAL << 16 | MS_REMOUNT), buf))
|
||||
{
|
||||
die ("resize_reiserfs: remount failed: %s\n",
|
||||
strerror(errno));
|
||||
(unsigned long)(MS_MGC_VAL << 16 | MS_REMOUNT), buf)) {
|
||||
die("resize_reiserfs: remount failed: %s\n", strerror(errno));
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user