file.c (2f221d6f7b881d95de1f356a3097d755ab1e47d4) | file.c (0d56a4518d5eaf595a24ab2202e171330bb2ed72) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (C) 2012-2013 Samsung Electronics Co., Ltd. 4 */ 5 6#include <linux/slab.h> 7#include <linux/cred.h> 8#include <linux/buffer_head.h> --- 259 unchanged lines hidden (view full) --- 268} 269 270int exfat_getattr(const struct path *path, struct kstat *stat, 271 unsigned int request_mask, unsigned int query_flags) 272{ 273 struct inode *inode = d_backing_inode(path->dentry); 274 struct exfat_inode_info *ei = EXFAT_I(inode); 275 | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (C) 2012-2013 Samsung Electronics Co., Ltd. 4 */ 5 6#include <linux/slab.h> 7#include <linux/cred.h> 8#include <linux/buffer_head.h> --- 259 unchanged lines hidden (view full) --- 268} 269 270int exfat_getattr(const struct path *path, struct kstat *stat, 271 unsigned int request_mask, unsigned int query_flags) 272{ 273 struct inode *inode = d_backing_inode(path->dentry); 274 struct exfat_inode_info *ei = EXFAT_I(inode); 275 |
276 generic_fillattr(inode, stat); | 276 generic_fillattr(&init_user_ns, inode, stat); |
277 exfat_truncate_atime(&stat->atime); 278 stat->result_mask |= STATX_BTIME; 279 stat->btime.tv_sec = ei->i_crtime.tv_sec; 280 stat->btime.tv_nsec = ei->i_crtime.tv_nsec; 281 stat->blksize = EXFAT_SB(inode->i_sb)->cluster_size; 282 return 0; 283} 284 --- 96 unchanged lines hidden --- | 277 exfat_truncate_atime(&stat->atime); 278 stat->result_mask |= STATX_BTIME; 279 stat->btime.tv_sec = ei->i_crtime.tv_sec; 280 stat->btime.tv_nsec = ei->i_crtime.tv_nsec; 281 stat->blksize = EXFAT_SB(inode->i_sb)->cluster_size; 282 return 0; 283} 284 --- 96 unchanged lines hidden --- |