summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-01-18 18:06:16 -0800
committerLinus Torvalds <torvalds@home.osdl.org>2004-01-18 18:06:16 -0800
commitdd503c67c0a6115af01fc0129dfcbe457b699384 (patch)
tree3b2c095a8ddc91553b1bf030407cfb26a2ebcc69 /include/linux
parent2b11e5180f112059e0ada3767eba89333b8d282f (diff)
[PATCH] bdev: add file.f_mapping
From: viro@parcelfarce.linux.theplanet.co.uk <viro@parcelfarce.linux.theplanet.co.uk> New field of struct file - ->f_mapping. We maintain the following: file->f_dentry->d_inode->i_mapping == file->f_mapping for all opened files.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index ab962f0b00c2..5848fcb8b351 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -526,6 +526,7 @@ struct file {
/* Used by fs/eventpoll.c to link all the hooks to this file */
struct list_head f_ep_links;
spinlock_t f_ep_lock;
+ struct address_space *f_mapping;
};
extern spinlock_t files_lock;
#define file_list_lock() spin_lock(&files_lock);