aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2011-11-21 06:11:33 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2012-01-06 23:20:13 -0500
commit8e8b87964bc8dc5c14b6543fc933b7725f07d3ac (patch)
tree9a14c135741f3a8ba960ff97f060a58597604a6d /include/linux/fs.h
parent7ada4db88634429f4da690ad1c4eb73c93085f0c (diff)
vfs: prevent remount read-only if pending removes
If there are any inodes on the super block that have been unlinked (i_nlink == 0) but have not yet been deleted then prevent the remounting the super block read-only. Reported-by: Toshiyuki Okajima <toshi.okajima@jp.fujitsu.com> Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Tested-by: Toshiyuki Okajima <toshi.okajima@jp.fujitsu.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 8ac40921f5ac..7aacf31418fe 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -2150,8 +2150,6 @@ extern const struct file_operations read_pipefifo_fops;
2150extern const struct file_operations write_pipefifo_fops; 2150extern const struct file_operations write_pipefifo_fops;
2151extern const struct file_operations rdwr_pipefifo_fops; 2151extern const struct file_operations rdwr_pipefifo_fops;
2152 2152
2153extern int fs_may_remount_ro(struct super_block *);
2154
2155#ifdef CONFIG_BLOCK 2153#ifdef CONFIG_BLOCK
2156/* 2154/*
2157 * return READ, READA, or WRITE 2155 * return READ, READA, or WRITE