+ nilfs2-add-nilfs_sufile_set_suinfo-to-update-segment-usage-fix.patch added to -mm tree
Subject: + nilfs2-add-nilfs_sufile_set_suinfo-to-update-segment-usage-fix.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Wed, 05 Feb 2014 13:49:10 -0800
The patch titled
Subject: nilfs2-add-nilfs_sufile_set_suinfo-to-update-segment-usage-fix
has been added to the -mm tree. Its filename is
nilfs2-add-nilfs_sufile_set_suinfo-to-update-segment-usage-fix.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/nilfs2-add-nilfs_sufile_set_suinfo-to-update-segment-usage-fix.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/nilfs2-add-nilfs_sufile_set_suinfo-to-update-segment-usage-fix.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: Ryusuke Konishi <[email protected]>
Subject: nilfs2-add-nilfs_sufile_set_suinfo-to-update-segment-usage-fix
Use put_bh() instead of brelse() because we know bh != NULL.
---
fs/nilfs2/sufile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
fs/nilfs2/sufile.c renamed from fs/nilfs2/sufile.c~nilfs2-add-nilfs_sufile_set_suinfo-to-update-segment-usage-fix +3 -3
@@ -978,13 +978,13 @@ ssize_t nilfs_sufile_set_suinfo(struct i/* get different block */ mark_buffer_dirty (bh); -brelse (bh); +put_bh (bh); ret =nilfs_mdt_get_block (sufile, blkoff,1 ,NULL , &bh);if (unlikely (ret <0 )) goto out_mark; }mark_buffer_dirty (bh); -brelse (bh); +put_bh (bh); out_mark:if (ncleaned || ndirtied) {
@@ -994,7 +994,7 @@ ssize_t nilfs_sufile_set_suinfo(struct i }nilfs_mdt_mark_dirty (sufile); out_header: -brelse (header_bh); +put_bh (header_bh); out_sem:up_write (&NILFS_MDT (sufile)->mi_sem);return ret;
_
Patches currently in -mm which might be from [email protected] are
nilfs2-update-maintainers-file-entries.patch nilfs2-add-struct-nilfs_suinfo_update-and-flags.patch nilfs2-add-nilfs_sufile_set_suinfo-to-update-segment-usage.patch nilfs2-add-nilfs_sufile_set_suinfo-to-update-segment-usage-fix.patch nilfs2-implementation-of-nilfs_ioctl_set_suinfo-ioctl.patch nilfs2-implementation-of-nilfs_ioctl_set_suinfo-ioctl-fix.patch