|
@@ -2331,7 +2331,7 @@ shmem_write_begin(struct file *file, struct address_space *mapping,
|
|
pgoff_t index = pos >> PAGE_SHIFT;
|
|
pgoff_t index = pos >> PAGE_SHIFT;
|
|
|
|
|
|
/* i_mutex is held by caller */
|
|
/* i_mutex is held by caller */
|
|
- if (unlikely(info->seals)) {
|
|
|
|
|
|
+ if (unlikely(info->seals & (F_SEAL_WRITE | F_SEAL_GROW))) {
|
|
if (info->seals & F_SEAL_WRITE)
|
|
if (info->seals & F_SEAL_WRITE)
|
|
return -EPERM;
|
|
return -EPERM;
|
|
if ((info->seals & F_SEAL_GROW) && pos + len > inode->i_size)
|
|
if ((info->seals & F_SEAL_GROW) && pos + len > inode->i_size)
|