inode.c (9938b04472d5c59f8bd8152a548533a8599596a2) | inode.c (a528d35e8bfcc521d7cb70aaf03e1bd296c8493f) |
---|---|
1/* 2 * Copyright (c) 2002 Red Hat, Inc. All rights reserved. 3 * 4 * This software may be freely redistributed under the terms of the 5 * GNU General Public License. 6 * 7 * You should have received a copy of the GNU General Public License 8 * along with this program; if not, write to the Free Software --- 361 unchanged lines hidden (view full) --- 370 mutex_unlock(&vnode->validate_lock); 371 _leave(" = %d", ret); 372 return ret; 373} 374 375/* 376 * read the attributes of an inode 377 */ | 1/* 2 * Copyright (c) 2002 Red Hat, Inc. All rights reserved. 3 * 4 * This software may be freely redistributed under the terms of the 5 * GNU General Public License. 6 * 7 * You should have received a copy of the GNU General Public License 8 * along with this program; if not, write to the Free Software --- 361 unchanged lines hidden (view full) --- 370 mutex_unlock(&vnode->validate_lock); 371 _leave(" = %d", ret); 372 return ret; 373} 374 375/* 376 * read the attributes of an inode 377 */ |
378int afs_getattr(struct vfsmount *mnt, struct dentry *dentry, 379 struct kstat *stat) | 378int afs_getattr(const struct path *path, struct kstat *stat, 379 u32 request_mask, unsigned int query_flags) |
380{ | 380{ |
381 struct inode *inode; | 381 struct inode *inode = d_inode(path->dentry); |
382 | 382 |
383 inode = d_inode(dentry); 384 | |
385 _enter("{ ino=%lu v=%u }", inode->i_ino, inode->i_generation); 386 387 generic_fillattr(inode, stat); 388 return 0; 389} 390 391/* 392 * discard an AFS inode --- 107 unchanged lines hidden --- | 383 _enter("{ ino=%lu v=%u }", inode->i_ino, inode->i_generation); 384 385 generic_fillattr(inode, stat); 386 return 0; 387} 388 389/* 390 * discard an AFS inode --- 107 unchanged lines hidden --- |