diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-01-18 18:06:35 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2004-01-18 18:06:35 -0800 |
| commit | 54df76626b6936f5c2d05b4da420e19c032a84ec (patch) | |
| tree | edc753bef82d5a74cd0877e3b628408d4a88c545 /include/linux | |
| parent | 32d666784c4e73f5348398402976c045872058a3 (diff) | |
[PATCH] bdev: use correct mapping's i_sem
From: viro@parcelfarce.linux.theplanet.co.uk <viro@parcelfarce.linux.theplanet.co.uk>
In a bunch of places we used file->f_dentry->d_inode->i_sem to protect
fdatasync et.al. Replaced with corrent file->f_mapping->host->i_sem - the
object we are protecting is address_space, so we want an exclusion that would
work for redirected ->i_mapping. For normal files (not coda, not bdev) it's
all the same, of course - there we have
file->f_mapping->host == file->f_dentry->d_inode
and change above is an equivalent transfromation.
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
