diff options
Diffstat (limited to 'fs/cachefiles/bind.c')
-rw-r--r-- | fs/cachefiles/bind.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cachefiles/bind.c b/fs/cachefiles/bind.c index 3ff867f87d73..d9f001078e08 100644 --- a/fs/cachefiles/bind.c +++ b/fs/cachefiles/bind.c | |||
@@ -133,7 +133,7 @@ static int cachefiles_daemon_add_cache(struct cachefiles_cache *cache) | |||
133 | goto error_unsupported; | 133 | goto error_unsupported; |
134 | 134 | ||
135 | ret = -EROFS; | 135 | ret = -EROFS; |
136 | if (root->d_sb->s_flags & MS_RDONLY) | 136 | if (sb_rdonly(root->d_sb)) |
137 | goto error_unsupported; | 137 | goto error_unsupported; |
138 | 138 | ||
139 | /* determine the security of the on-disk cache as this governs | 139 | /* determine the security of the on-disk cache as this governs |