The patch titled Subject: ocfs2: remove bogus test from ocfs2_read_locked_inode() has been added to the -mm tree. Its filename is ocfs2-remove-bogus-test-from-ocfs2_read_locked_inode.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/ocfs2-remove-bogus-test-from-ocfs2_read_locked_inode.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/ocfs2-remove-bogus-test-from-ocfs2_read_locked_inode.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Jan Kara <jack@xxxxxxx> Subject: ocfs2: remove bogus test from ocfs2_read_locked_inode() 'args' are always set for ocfs2_read_locked_inode() and brelse() checks whether bh is NULL. So the test (args && bh) is unnecessary (plus the args part is really confusing anyway). Remove it. Coverity id: 1128856. Signed-off-by: Jan Kara <jack@xxxxxxx> Cc: Mark Fasheh <mfasheh@xxxxxxxx> Cc: Joel Becker <jlbec@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/ocfs2/inode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff -puN fs/ocfs2/inode.c~ocfs2-remove-bogus-test-from-ocfs2_read_locked_inode fs/ocfs2/inode.c --- a/fs/ocfs2/inode.c~ocfs2-remove-bogus-test-from-ocfs2_read_locked_inode +++ a/fs/ocfs2/inode.c @@ -540,8 +540,7 @@ bail: if (status < 0) make_bad_inode(inode); - if (args && bh) - brelse(bh); + brelse(bh); return status; } _ Patches currently in -mm which might be from jack@xxxxxxx are origin.patch bitmap-fix-undefined-shift-in-__bitmap_shift_leftright.patch fallocate-create-fan_modify-and-in_modify-events.patch fs-ext4-fsyncc-generic_file_fsync-call-based-on-barrier-flag.patch ocfs2-fix-xattr-check-in-ocfs2_get_xattr_nolock.patch ocfs2-remove-bogus-test-from-ocfs2_read_locked_inode.patch fs-mpagec-forgotten-write_sync-in-case-of-data-integrity-write.patch mm-add-strictlimit-knob-v2.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html