[2.6] HPFS: missing lock_kernel() in hpfs_readdir()
PATCH 1/1 [2.6] HPFS: missing lock_kernel() in hpfs_readdir()
Hi Linus,
recently the BKL was pushed from vfs_readdir() into the filesystem specific functions. But only the unlock_kernel() made it into the HPFS code, lock_kernel() got lost on the way. This rendered the filesystem unusable.
The patch below adds the missing lock_kernel(). It's been tested by Timo Maier who also reported the problem earlier today.
Please apply.
Thanks,
René
fs/hpfs/dir.c renamed from fs/hpfs/dir.c~ +2 -0
@@ -65,6 +65,8 @@int c1, c2 =0 ;int ret =0 ; +lock_kernel (); +if (hpfs_sb (inode->i_sb)->sb_chk) {if (hpfs_chk_sectors (inode->i_sb, inode->i_ino,1 ,"dir_fnode" )) { ret = -EFSERROR ;