Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fs/fuse/backing.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ int fuse_backing_open(struct fuse_conn *fc, struct fuse_backing_map *map)
goto out_fput;

fb->file = file;
fb->cred = prepare_creds();
fb->cred = get_current_cred();
refcount_set(&fb->count, 1);

res = fuse_backing_id_alloc(fc, fb);
Expand Down
2 changes: 1 addition & 1 deletion fs/fuse/fuse_i.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ struct fuse_submount_lookup {
/** Container for data related to mapping to backing file */
struct fuse_backing {
struct file *file;
struct cred *cred;
const struct cred *cred;

/** refcount */
refcount_t count;
Expand Down
Loading