summaryrefslogtreecommitdiff
path: root/mm/filemap.c
diff options
context:
space:
mode:
authorAlexander Viro <viro@math.psu.edu>2002-06-11 00:55:28 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-06-11 00:55:28 -0700
commitb83c1ac7e97f62ec480ab4604bcd64ff40b14cba (patch)
treec85619194cf71b3c14f49d9b56dd23ab11e28f0e /mm/filemap.c
parent23f2ac44d5f9da6e04be21d56596400318d9e7ad (diff)
[PATCH] (4/14) resync
added bdev_read_only() - analog of is_read_only() using block_device. Almost all callers of is_read_only() converted.
Diffstat (limited to 'mm/filemap.c')
-rw-r--r--mm/filemap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index a8283c49fcd0..fe2be94af9f9 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -2178,7 +2178,7 @@ generic_file_write(struct file *file, const char *buf,
if (unlikely(pos + count > inode->i_sb->s_maxbytes))
count = inode->i_sb->s_maxbytes - pos;
} else {
- if (is_read_only(inode->i_rdev)) {
+ if (bdev_read_only(inode->i_bdev)) {
err = -EPERM;
goto out;
}