Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README |
| 3 | */ |
| 4 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | #include <linux/time.h> |
Al Viro | f466c6f | 2012-03-17 01:16:43 -0400 | [diff] [blame] | 6 | #include "reiserfs.h" |
Al Viro | a3063ab | 2012-03-17 01:03:10 -0400 | [diff] [blame] | 7 | #include "acl.h" |
Al Viro | c45ac88 | 2012-03-17 00:59:06 -0400 | [diff] [blame] | 8 | #include "xattr.h" |
Fabian Frederick | 17093991 | 2014-08-08 14:21:12 -0700 | [diff] [blame] | 9 | #include <linux/uaccess.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | #include <linux/pagemap.h> |
| 11 | #include <linux/swap.h> |
| 12 | #include <linux/writeback.h> |
| 13 | #include <linux/blkdev.h> |
| 14 | #include <linux/buffer_head.h> |
| 15 | #include <linux/quotaops.h> |
| 16 | |
| 17 | /* |
Jeff Mahoney | 098297b | 2014-04-23 10:00:36 -0400 | [diff] [blame] | 18 | * We pack the tails of files on file close, not at the time they are written. |
| 19 | * This implies an unnecessary copy of the tail and an unnecessary indirect item |
| 20 | * insertion/balancing, for files that are written in one write. |
| 21 | * It avoids unnecessary tail packings (balances) for files that are written in |
| 22 | * multiple writes and are small enough to have tails. |
| 23 | * |
| 24 | * file_release is called by the VFS layer when the file is closed. If |
| 25 | * this is the last open file descriptor, and the file |
| 26 | * small enough to have a tail, and the tail is currently in an |
| 27 | * unformatted node, the tail is converted back into a direct item. |
| 28 | * |
| 29 | * We use reiserfs_truncate_file to pack the tail, since it already has |
| 30 | * all the conditions coded. |
| 31 | */ |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 32 | static int reiserfs_file_release(struct inode *inode, struct file *filp) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | { |
| 34 | |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 35 | struct reiserfs_transaction_handle th; |
| 36 | int err; |
| 37 | int jbegin_failure = 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 38 | |
Eric Sesterhenn | 14a6144 | 2006-10-03 23:36:38 +0200 | [diff] [blame] | 39 | BUG_ON(!S_ISREG(inode->i_mode)); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 40 | |
Nikitas Angelinas | a9913d7 | 2019-11-03 01:44:54 -0800 | [diff] [blame] | 41 | if (!atomic_dec_and_mutex_lock(&REISERFS_I(inode)->openers, |
| 42 | &REISERFS_I(inode)->tailpack)) |
Al Viro | 0e4f6a7 | 2010-07-04 12:18:57 +0400 | [diff] [blame] | 43 | return 0; |
| 44 | |
Al Viro | 0e4f6a7 | 2010-07-04 12:18:57 +0400 | [diff] [blame] | 45 | /* fast out for when nothing needs to be done */ |
| 46 | if ((!(REISERFS_I(inode)->i_flags & i_pack_on_close_mask) || |
| 47 | !tail_has_to_be_packed(inode)) && |
| 48 | REISERFS_I(inode)->i_prealloc_count <= 0) { |
Jeff Mahoney | a228bf8 | 2014-04-23 10:00:42 -0400 | [diff] [blame] | 49 | mutex_unlock(&REISERFS_I(inode)->tailpack); |
Al Viro | 0e4f6a7 | 2010-07-04 12:18:57 +0400 | [diff] [blame] | 50 | return 0; |
| 51 | } |
Vladimir Saveliev | de14569 | 2007-01-22 20:40:46 -0800 | [diff] [blame] | 52 | |
Chris Mason | b5f3953 | 2006-08-05 12:15:08 -0700 | [diff] [blame] | 53 | reiserfs_write_lock(inode->i_sb); |
Jeff Mahoney | 098297b | 2014-04-23 10:00:36 -0400 | [diff] [blame] | 54 | /* |
| 55 | * freeing preallocation only involves relogging blocks that |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 56 | * are already in the current transaction. preallocation gets |
| 57 | * freed at the end of each transaction, so it is impossible for |
| 58 | * us to log any additional blocks (including quota blocks) |
| 59 | */ |
| 60 | err = journal_begin(&th, inode->i_sb, 1); |
| 61 | if (err) { |
Jeff Mahoney | 098297b | 2014-04-23 10:00:36 -0400 | [diff] [blame] | 62 | /* |
| 63 | * uh oh, we can't allow the inode to go away while there |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 64 | * is still preallocation blocks pending. Try to join the |
| 65 | * aborted transaction |
| 66 | */ |
| 67 | jbegin_failure = err; |
Jeff Mahoney | b491dd1 | 2014-04-23 10:00:40 -0400 | [diff] [blame] | 68 | err = journal_join_abort(&th, inode->i_sb); |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 69 | |
| 70 | if (err) { |
Jeff Mahoney | 098297b | 2014-04-23 10:00:36 -0400 | [diff] [blame] | 71 | /* |
| 72 | * hmpf, our choices here aren't good. We can pin |
| 73 | * the inode which will disallow unmount from ever |
| 74 | * happening, we can do nothing, which will corrupt |
| 75 | * random memory on unmount, or we can forcibly |
| 76 | * remove the file from the preallocation list, which |
| 77 | * will leak blocks on disk. Lets pin the inode |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 78 | * and let the admin know what is going on. |
| 79 | */ |
| 80 | igrab(inode); |
Jeff Mahoney | 45b03d5 | 2009-03-30 14:02:21 -0400 | [diff] [blame] | 81 | reiserfs_warning(inode->i_sb, "clm-9001", |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 82 | "pinning inode %lu because the " |
Alexey Dobriyan | 533221f | 2006-11-25 11:09:30 -0800 | [diff] [blame] | 83 | "preallocation can't be freed", |
| 84 | inode->i_ino); |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 85 | goto out; |
| 86 | } |
| 87 | } |
| 88 | reiserfs_update_inode_transaction(inode); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 89 | |
| 90 | #ifdef REISERFS_PREALLOCATE |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 91 | reiserfs_discard_prealloc(&th, inode); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 92 | #endif |
Jeff Mahoney | 58d8542 | 2014-04-23 10:00:38 -0400 | [diff] [blame] | 93 | err = journal_end(&th); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 94 | |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 95 | /* copy back the error code from journal_begin */ |
| 96 | if (!err) |
| 97 | err = jbegin_failure; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 98 | |
Al Viro | 0e4f6a7 | 2010-07-04 12:18:57 +0400 | [diff] [blame] | 99 | if (!err && |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 100 | (REISERFS_I(inode)->i_flags & i_pack_on_close_mask) && |
| 101 | tail_has_to_be_packed(inode)) { |
Al Viro | 0e4f6a7 | 2010-07-04 12:18:57 +0400 | [diff] [blame] | 102 | |
Jeff Mahoney | 098297b | 2014-04-23 10:00:36 -0400 | [diff] [blame] | 103 | /* |
| 104 | * if regular file is released by last holder and it has been |
| 105 | * appended (we append by unformatted node only) or its direct |
| 106 | * item(s) had to be converted, then it may have to be |
| 107 | * indirect2direct converted |
| 108 | */ |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 109 | err = reiserfs_truncate_file(inode, 0); |
| 110 | } |
Jeff Mahoney | cf776a7 | 2014-04-23 10:00:41 -0400 | [diff] [blame] | 111 | out: |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 112 | reiserfs_write_unlock(inode->i_sb); |
Jeff Mahoney | a228bf8 | 2014-04-23 10:00:42 -0400 | [diff] [blame] | 113 | mutex_unlock(&REISERFS_I(inode)->tailpack); |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 114 | return err; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 115 | } |
| 116 | |
Al Viro | 0e4f6a7 | 2010-07-04 12:18:57 +0400 | [diff] [blame] | 117 | static int reiserfs_file_open(struct inode *inode, struct file *file) |
Vladimir Saveliev | de14569 | 2007-01-22 20:40:46 -0800 | [diff] [blame] | 118 | { |
Al Viro | 0e4f6a7 | 2010-07-04 12:18:57 +0400 | [diff] [blame] | 119 | int err = dquot_file_open(inode, file); |
Jeff Mahoney | 098297b | 2014-04-23 10:00:36 -0400 | [diff] [blame] | 120 | |
| 121 | /* somebody might be tailpacking on final close; wait for it */ |
Al Viro | 0e4f6a7 | 2010-07-04 12:18:57 +0400 | [diff] [blame] | 122 | if (!atomic_inc_not_zero(&REISERFS_I(inode)->openers)) { |
Jeff Mahoney | a228bf8 | 2014-04-23 10:00:42 -0400 | [diff] [blame] | 123 | mutex_lock(&REISERFS_I(inode)->tailpack); |
Al Viro | 0e4f6a7 | 2010-07-04 12:18:57 +0400 | [diff] [blame] | 124 | atomic_inc(&REISERFS_I(inode)->openers); |
Jeff Mahoney | a228bf8 | 2014-04-23 10:00:42 -0400 | [diff] [blame] | 125 | mutex_unlock(&REISERFS_I(inode)->tailpack); |
Al Viro | 0e4f6a7 | 2010-07-04 12:18:57 +0400 | [diff] [blame] | 126 | } |
| 127 | return err; |
Vladimir Saveliev | de14569 | 2007-01-22 20:40:46 -0800 | [diff] [blame] | 128 | } |
| 129 | |
Marco Stornelli | cfac4b4 | 2012-12-15 11:47:31 +0100 | [diff] [blame] | 130 | void reiserfs_vfs_truncate_file(struct inode *inode) |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 131 | { |
Jeff Mahoney | a228bf8 | 2014-04-23 10:00:42 -0400 | [diff] [blame] | 132 | mutex_lock(&REISERFS_I(inode)->tailpack); |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 133 | reiserfs_truncate_file(inode, 1); |
Jeff Mahoney | a228bf8 | 2014-04-23 10:00:42 -0400 | [diff] [blame] | 134 | mutex_unlock(&REISERFS_I(inode)->tailpack); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 135 | } |
| 136 | |
| 137 | /* Sync a reiserfs file. */ |
| 138 | |
| 139 | /* |
| 140 | * FIXME: sync_mapping_buffers() never has anything to sync. Can |
| 141 | * be removed... |
| 142 | */ |
| 143 | |
Josef Bacik | 02c24a8 | 2011-07-16 20:44:56 -0400 | [diff] [blame] | 144 | static int reiserfs_sync_file(struct file *filp, loff_t start, loff_t end, |
| 145 | int datasync) |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 146 | { |
Christoph Hellwig | 7ea8085 | 2010-05-26 17:53:25 +0200 | [diff] [blame] | 147 | struct inode *inode = filp->f_mapping->host; |
Jeff Mahoney | ee93961 | 2009-03-30 14:02:50 -0400 | [diff] [blame] | 148 | int err; |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 149 | int barrier_done; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 150 | |
Jeff Layton | 3b49c9a | 2017-07-07 15:20:52 -0400 | [diff] [blame] | 151 | err = file_write_and_wait_range(filp, start, end); |
Josef Bacik | 02c24a8 | 2011-07-16 20:44:56 -0400 | [diff] [blame] | 152 | if (err) |
| 153 | return err; |
| 154 | |
Al Viro | 5955102 | 2016-01-22 15:40:57 -0500 | [diff] [blame] | 155 | inode_lock(inode); |
Jeff Mahoney | 995c762 | 2009-03-30 14:02:47 -0400 | [diff] [blame] | 156 | BUG_ON(!S_ISREG(inode->i_mode)); |
Jeff Mahoney | ee93961 | 2009-03-30 14:02:50 -0400 | [diff] [blame] | 157 | err = sync_mapping_buffers(inode->i_mapping); |
Jeff Mahoney | 995c762 | 2009-03-30 14:02:47 -0400 | [diff] [blame] | 158 | reiserfs_write_lock(inode->i_sb); |
| 159 | barrier_done = reiserfs_commit_for_inode(inode); |
| 160 | reiserfs_write_unlock(inode->i_sb); |
| 161 | if (barrier_done != 1 && reiserfs_barrier_flush(inode->i_sb)) |
Christoph Hellwig | c6bf3f0 | 2021-01-26 15:52:35 +0100 | [diff] [blame] | 162 | blkdev_issue_flush(inode->i_sb->s_bdev); |
Al Viro | 5955102 | 2016-01-22 15:40:57 -0500 | [diff] [blame] | 163 | inode_unlock(inode); |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 164 | if (barrier_done < 0) |
| 165 | return barrier_done; |
Jeff Mahoney | ee93961 | 2009-03-30 14:02:50 -0400 | [diff] [blame] | 166 | return (err < 0) ? -EIO : 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 167 | } |
| 168 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 169 | /* taken fs/buffer.c:__block_commit_write */ |
| 170 | int reiserfs_commit_page(struct inode *inode, struct page *page, |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 171 | unsigned from, unsigned to) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 172 | { |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 173 | unsigned block_start, block_end; |
| 174 | int partial = 0; |
| 175 | unsigned blocksize; |
| 176 | struct buffer_head *bh, *head; |
Kirill A. Shutemov | 09cbfea | 2016-04-01 15:29:47 +0300 | [diff] [blame] | 177 | unsigned long i_size_index = inode->i_size >> PAGE_SHIFT; |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 178 | int new; |
| 179 | int logit = reiserfs_file_data_log(inode); |
| 180 | struct super_block *s = inode->i_sb; |
Kirill A. Shutemov | 09cbfea | 2016-04-01 15:29:47 +0300 | [diff] [blame] | 181 | int bh_per_page = PAGE_SIZE / s->s_blocksize; |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 182 | struct reiserfs_transaction_handle th; |
| 183 | int ret = 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 184 | |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 185 | th.t_trans_id = 0; |
Fabian Frederick | 9340747 | 2017-02-27 14:28:32 -0800 | [diff] [blame] | 186 | blocksize = i_blocksize(inode); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 187 | |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 188 | if (logit) { |
| 189 | reiserfs_write_lock(s); |
| 190 | ret = journal_begin(&th, s, bh_per_page + 1); |
| 191 | if (ret) |
| 192 | goto drop_write_lock; |
| 193 | reiserfs_update_inode_transaction(inode); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 194 | } |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 195 | for (bh = head = page_buffers(page), block_start = 0; |
| 196 | bh != head || !block_start; |
| 197 | block_start = block_end, bh = bh->b_this_page) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 198 | |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 199 | new = buffer_new(bh); |
| 200 | clear_buffer_new(bh); |
| 201 | block_end = block_start + blocksize; |
| 202 | if (block_end <= from || block_start >= to) { |
| 203 | if (!buffer_uptodate(bh)) |
| 204 | partial = 1; |
| 205 | } else { |
| 206 | set_buffer_uptodate(bh); |
| 207 | if (logit) { |
| 208 | reiserfs_prepare_for_journal(s, bh, 1); |
Jeff Mahoney | 09f1b80 | 2014-04-23 10:00:39 -0400 | [diff] [blame] | 209 | journal_mark_dirty(&th, bh); |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 210 | } else if (!buffer_dirty(bh)) { |
| 211 | mark_buffer_dirty(bh); |
Jeff Mahoney | 098297b | 2014-04-23 10:00:36 -0400 | [diff] [blame] | 212 | /* |
| 213 | * do data=ordered on any page past the end |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 214 | * of file and any buffer marked BH_New. |
| 215 | */ |
| 216 | if (reiserfs_data_ordered(inode->i_sb) && |
| 217 | (new || page->index >= i_size_index)) { |
| 218 | reiserfs_add_ordered_list(inode, bh); |
| 219 | } |
| 220 | } |
| 221 | } |
| 222 | } |
| 223 | if (logit) { |
Jeff Mahoney | 58d8542 | 2014-04-23 10:00:38 -0400 | [diff] [blame] | 224 | ret = journal_end(&th); |
Jeff Mahoney | cf776a7 | 2014-04-23 10:00:41 -0400 | [diff] [blame] | 225 | drop_write_lock: |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 226 | reiserfs_write_unlock(s); |
| 227 | } |
| 228 | /* |
| 229 | * If this is a partial write which happened to make all buffers |
| 230 | * uptodate then we can optimize away a bogus readpage() for |
| 231 | * the next read(). Here we 'discover' whether the page went |
| 232 | * uptodate as a result of this (potentially partial) write. |
| 233 | */ |
| 234 | if (!partial) |
| 235 | SetPageUptodate(page); |
| 236 | return ret; |
| 237 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 238 | |
Arjan van de Ven | 4b6f5d2 | 2006-03-28 01:56:42 -0800 | [diff] [blame] | 239 | const struct file_operations reiserfs_file_operations = { |
Frederic Weisbecker | 205cb37 | 2009-10-14 23:22:17 +0200 | [diff] [blame] | 240 | .unlocked_ioctl = reiserfs_ioctl, |
David Howells | 52b499c | 2006-08-29 19:06:18 +0100 | [diff] [blame] | 241 | #ifdef CONFIG_COMPAT |
| 242 | .compat_ioctl = reiserfs_compat_ioctl, |
| 243 | #endif |
Al Viro | 0e4f6a7 | 2010-07-04 12:18:57 +0400 | [diff] [blame] | 244 | .mmap = generic_file_mmap, |
| 245 | .open = reiserfs_file_open, |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 246 | .release = reiserfs_file_release, |
| 247 | .fsync = reiserfs_sync_file, |
Al Viro | aad4f8b | 2014-04-02 14:33:16 -0400 | [diff] [blame] | 248 | .read_iter = generic_file_read_iter, |
Al Viro | 8174202 | 2014-04-03 03:17:43 -0400 | [diff] [blame] | 249 | .write_iter = generic_file_write_iter, |
Jens Axboe | 5274f05 | 2006-03-30 15:15:30 +0200 | [diff] [blame] | 250 | .splice_read = generic_file_splice_read, |
Al Viro | 8d02076 | 2014-04-05 04:27:08 -0400 | [diff] [blame] | 251 | .splice_write = iter_file_splice_write, |
Christoph Hellwig | 91efc16 | 2008-09-08 19:42:50 +0200 | [diff] [blame] | 252 | .llseek = generic_file_llseek, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 253 | }; |
| 254 | |
Arjan van de Ven | c5ef1c4 | 2007-02-12 00:55:40 -0800 | [diff] [blame] | 255 | const struct inode_operations reiserfs_file_inode_operations = { |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 256 | .setattr = reiserfs_setattr, |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 257 | .listxattr = reiserfs_listxattr, |
Linus Torvalds | bd4c625 | 2005-07-12 20:21:28 -0700 | [diff] [blame] | 258 | .permission = reiserfs_permission, |
Christoph Hellwig | 4e34e71 | 2011-07-23 17:37:31 +0200 | [diff] [blame] | 259 | .get_acl = reiserfs_get_acl, |
Christoph Hellwig | 47f70d0 | 2013-12-20 05:16:49 -0800 | [diff] [blame] | 260 | .set_acl = reiserfs_set_acl, |
Miklos Szeredi | 03eb606 | 2021-04-07 14:36:44 +0200 | [diff] [blame] | 261 | .fileattr_get = reiserfs_fileattr_get, |
| 262 | .fileattr_set = reiserfs_fileattr_set, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 263 | }; |