mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
ANDROID: f2fs: fix incorrect merge resolution in f2fs_trace_rw_file_path()
The merge included commitbbedc64de0("f2fs: factor the read/write tracing logic into a helper") During merge we accidentally undid a part of the change from commitfae611f4f0("f2fs: allocate trace path buffer from names_cache") This patch fixes it by using f2fs_getname() to match with f2fs_putname() at the end. Bug: 409714766 Fixes:bfad6b019c("Merge tag 'android14-6.1.115_r00' into android14-6.1") Change-Id: I56f78e560c0847939773c9773064bc60561effcb Signed-off-by: Sandeep Dhavale <dhavale@google.com>
This commit is contained in:
@@ -4571,7 +4571,7 @@ static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw)
|
||||
struct inode *inode = file_inode(iocb->ki_filp);
|
||||
char *buf, *path;
|
||||
|
||||
buf = f2fs_kmalloc(F2FS_I_SB(inode), PATH_MAX, GFP_KERNEL);
|
||||
buf = f2fs_getname(F2FS_I_SB(inode));
|
||||
if (!buf)
|
||||
return;
|
||||
path = dentry_path_raw(file_dentry(iocb->ki_filp), buf, PATH_MAX);
|
||||
|
||||
Reference in New Issue
Block a user