]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: Take page lock before looking at attached buffer_heads flags
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Thu, 10 Sep 2009 02:36:03 +0000 (22:36 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Dec 2009 16:06:26 +0000 (08:06 -0800)
commitf112250b558ed59538502992570272253b4ef129
treeff00ac11e61faea93d27d5eca009a82773828964
parentde48efe24d0e6a2291dc4fe23271b5e5b16b01a7
ext4: Take page lock before looking at attached buffer_heads flags

(cherry picked from commit a827eaffff07c7d58a4cb32158cbeb4849f4e33a)

In order to check whether the buffer_heads are mapped we need to hold
page lock. Otherwise a reclaim can cleanup the attached buffer_heads.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/inode.c