Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754917Ab3J3UXF (ORCPT ); Wed, 30 Oct 2013 16:23:05 -0400 Received: from mail-la0-f52.google.com ([209.85.215.52]:52956 "EHLO mail-la0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754674Ab3J3UW2 (ORCPT ); Wed, 30 Oct 2013 16:22:28 -0400 Message-Id: <20131030202221.569814673@openvz.org> User-Agent: quilt/0.60-1 Date: Wed, 30 Oct 2013 23:59:57 +0400 From: Cyrill Gorcunov To: linux-kernel@vger.kernel.org Cc: Cyrill Gorcunov , Pavel Emelyanov , Oleg Nesterov , Andrey Vagin , Al Viro , Alexey Dobriyan , James Bottomley , "Aneesh Kumar K.V" , Matthew Helsley , "J. Bruce Fields" , Tvrtko Ursulin , Andrew Morton Subject: [patch 6/6] procfs: Drop legacy show_fdinfo file operation References: <20131030195951.201688764@openvz.org> Content-Disposition: inline; filename=0006-procfs-ridof Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2041 Lines: 56 All former users of show_fdinfo are converted to sequential output engine thus we don't need it anymore. Signed-off-by: Cyrill Gorcunov Cc: Pavel Emelyanov Cc: Oleg Nesterov Cc: Andrey Vagin Cc: Al Viro Cc: Alexey Dobriyan Cc: James Bottomley Cc: "Aneesh Kumar K.V" Cc: Alexey Dobriyan Cc: Matthew Helsley Cc: "J. Bruce Fields" Cc: "Aneesh Kumar K.V" Cc: Tvrtko Ursulin Cc: Andrew Morton --- fs/proc/fd.c | 5 ----- include/linux/fs.h | 1 - 2 files changed, 6 deletions(-) Index: linux-2.6.git/fs/proc/fd.c =================================================================== --- linux-2.6.git.orig/fs/proc/fd.c +++ linux-2.6.git/fs/proc/fd.c @@ -79,11 +79,6 @@ static int seq_show(struct seq_file *m, seq_printf(m, "pos:\t%lli\nflags:\t0%o\n", (long long)info->f_file->f_pos, info->f_flags); - - /* Legacy interface */ - if (info->f_file->f_op->show_fdinfo) - return info->f_file->f_op->show_fdinfo(m, info->f_file); - return 0; } Index: linux-2.6.git/include/linux/fs.h =================================================================== --- linux-2.6.git.orig/include/linux/fs.h +++ linux-2.6.git/include/linux/fs.h @@ -1551,7 +1551,6 @@ struct file_operations { int (*setlease)(struct file *, long, struct file_lock **); long (*fallocate)(struct file *file, int mode, loff_t offset, loff_t len); - int (*show_fdinfo)(struct seq_file *m, struct file *f); struct seq_operations *fdinfo_ops; }; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/