summaryrefslogtreecommitdiffstats
path: root/fs/ext4/bitmap.c
diff options
context:
space:
mode:
authorDan Carpenter2015-08-15 17:30:31 +0200
committerTheodore Ts'o2015-08-15 17:30:31 +0200
commit9810446836ab5a4b34a749bb77f3eb5836f982cc (patch)
tree4bc7c2d3788f2dbd2fb58d185291799f3be9329a /fs/ext4/bitmap.c
parentext4: don't manipulate recovery flag when freezing no-journal fs (diff)
downloadkernel-qcow2-linux-9810446836ab5a4b34a749bb77f3eb5836f982cc.tar.gz
kernel-qcow2-linux-9810446836ab5a4b34a749bb77f3eb5836f982cc.tar.xz
kernel-qcow2-linux-9810446836ab5a4b34a749bb77f3eb5836f982cc.zip
ext4: simplify some code in read_mmp_block()
My static check complains because we have: if (!*bh) return -ENOMEM; if (*bh) { The second check is unnecessary. I've simplified this code by moving the "if (!*bh)" checks around. Also Andreas Dilger says we should probably print a warning if sb_getblk() fails. [ Restructured the code so that we print a warning message as well if the mmp block doesn't check out, and to print the error code to disambiguate between the error cases. - TYT ] Reviewed-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/bitmap.c')
0 files changed, 0 insertions, 0 deletions