Skip to content

Commit c6dc54d

Browse files
committed
netfs: Add a hook to allow tell the netfs to update its i_size
Add a hook for netfslib's write helpers to call to tell the network filesystem that it should update its i_size. Signed-off-by: David Howells <[email protected]> Reviewed-by: Jeff Layton <[email protected]> cc: [email protected] cc: [email protected] cc: [email protected]
1 parent 16af134 commit c6dc54d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/linux/netfs.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,13 +242,17 @@ struct netfs_request_ops {
242242
void (*free_request)(struct netfs_io_request *rreq);
243243
void (*free_subrequest)(struct netfs_io_subrequest *rreq);
244244

245+
/* Read request handling */
245246
void (*expand_readahead)(struct netfs_io_request *rreq);
246247
bool (*clamp_length)(struct netfs_io_subrequest *subreq);
247248
void (*issue_read)(struct netfs_io_subrequest *subreq);
248249
bool (*is_still_valid)(struct netfs_io_request *rreq);
249250
int (*check_write_begin)(struct file *file, loff_t pos, unsigned len,
250251
struct folio **foliop, void **_fsdata);
251252
void (*done)(struct netfs_io_request *rreq);
253+
254+
/* Modification handling */
255+
void (*update_i_size)(struct inode *inode, loff_t i_size);
252256
};
253257

254258
/*

0 commit comments

Comments
 (0)